
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.NoticeSet;
import com.sasis.dao.NoticeSetDao;
import com.sasis.service.NoticeSetManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class NoticeSetManagerImpl extends BaseManager implements NoticeSetManager {
    private NoticeSetDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setNoticeSetDao(NoticeSetDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.NoticeSetManager#getNoticeSets(com.sasis.model.NoticeSet)
     */
    public List getNoticeSets(final NoticeSet noticeSet) {
        return dao.getNoticeSets(noticeSet);
    }

    /**
     * @see com.sasis.service.NoticeSetManager#getNoticeSet(String id)
     */
    public NoticeSet getNoticeSet(final String id) {
        return dao.getNoticeSet(new Integer(id));
    }

    /**
     * @see com.sasis.service.NoticeSetManager#saveNoticeSet(NoticeSet noticeSet)
     */
    public void saveNoticeSet(NoticeSet noticeSet) {
        dao.saveNoticeSet(noticeSet);
    }

    /**
     * @see com.sasis.service.NoticeSetManager#removeNoticeSet(String id)
     */
    public void removeNoticeSet(final String id) {
        dao.removeNoticeSet(new Integer(id));
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
